# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-java
pkgver=0.23.2
pkgrel=0
pkgdesc="Java grammar for tree-sitter"
url="https://github.com/tree-sitter/tree-sitter-java"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/tree-sitter/tree-sitter-java/archive/refs/tags/v$pkgver/tree-sitter-java-$pkgver.tar.gz"
options="!check"  # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
745dac6b5c6512777d3dc8f8652f967461e0a5354e18318851ff9e37d934552c6fd528a617fd795f201e3e4e2c8cd1eee1fb86efce2e0bcadceeda200c6d0c78  tree-sitter-java-0.23.2.tar.gz
"
